-- GENERATED SPELL FOR [Scalebane Royal Guard] --


function spell0_1050(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(16635,pUnit)
pUnit:RegisterEvent('Sorts_1050', 682, 1)
end

function spell1_1050(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1050', 5332, 1)
end

function Sorts_1050(pUnit, Event)
local choix_sorts_1050 = math.random(0, 1)
if choix_sorts_1050 == 0 then
pUnit:RegisterEvent('spell0_1050', 1, 1)
end
if choix_sorts_1050 == 1 then
pUnit:RegisterEvent('spell1_1050', 1, 1)
end
end

function mob1050_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1050', math.random(1500, 3000), 1)
end

function mob1050_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1050_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1050_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1050, 1, 'mob1050_Action')
RegisterUnitEvent(1050, 2, 'mob1050_Leave')
RegisterUnitEvent(1050, 3, 'mob1050_Kill')
RegisterUnitEvent(1050, 4, 'mob1050_Die')
